import { Point, Map, Polyline, Polygon } from '../dist'

console.log('demo run')
window.onload = function() {
    console.log('load')
    const map = new Map('map')

    // 绘制点
    const point = new Point(100, 100)
    map.addGeometry(point)

    // 绘制线
    const polyline = new Polyline([[150, 100], [250, 200]])
    map.addGeometry(polyline)

    // 绘制面
    const polygon = new Polygon([
        [[150, 300], [250, 400], [180, 450]],
    ])
    map.addGeometry(polygon)
}